﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using Neptuno.Component;
using Neptuno.Model;
using System;

namespace Neptuno.Service
{
    [ServiceContract]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
    public class PaisesService
    {
        PaisesComponent Component = new PaisesComponent();

        [WebGet(UriTemplate = "", ResponseFormat = WebMessageFormat.Json)]
        public List<Paises> Listar()
        {
            List<Paises> lista = Component.Listar();
            return lista;
        }
    }
}